﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using AALib.Input;
using AALib.Sprite;
using AALib.Entity;
using AALib.Collision;

using Microsoft.Xna.Framework;

namespace WeatherGame
{
    public class Board
    {
        private Tile[] m_tileArray;
        public Vector2 m_position;

        public Board(int p_size, Vector2 p_positon)
        {
            m_tileArray = new Tile[p_size * p_size];
            m_position = p_positon;
        }

        protected abstract void UpdateTiles();

        public void Update(GameTime gameTime)
        {
            foreach (Tile tile in m_tileArray)
                tile.Update(gameTime);
        }

        public void Draw(GameTime gameTime)
        {
            foreach (Tile tile in m_tileArray)
                tile.Draw(gameTime);
        }
    }
}
